package com.devunion.reader.client.to;

import com.extjs.gxt.ui.client.data.BaseTreeModel;

import java.io.Serializable;
import java.util.Date;

/**
 * @author Timoshenko Alexander 22.08.2009 : 14:35:00
 */
public class SearchProjectTo extends BaseTreeModel
        implements Serializable {
    public static String FIRST_NAME = "FIRST_NAME";
    public static String LAST_NAME = "LAST_NAME";
    public static String PROJECT_NAME = "PROJECT_NAME";
    public static String TITLE = "TITLE";
    public static String TYPE = "TYPE";
    public static String LANGUAGE = "LANGUAGE";
    public static String PAGES_MIN = "PAGES_MIN";
    public static String PAGES_MAX = "PAGES_MAX";
    public static String CREATION_MIN = "CREATION_MIN";
    public static String CREATION_MAX = "CREATION_MAX";
    public static String EXACT_MIN = "EXACT_MIN";
    public static String EXACT_MAX = "EXACT_MAX";
    public static String END_MIN = "END_MIN";
    public static String END_MAX = "END_MAX";
    public static String ANNOTATION_TYPE = "ANNOTATION_TYPE";
    public static String ANNOTATION_TEXT = "ANNOTATION_TEXT";

    public String getFirstName() {
        return get(FIRST_NAME);
    }

    public String getLastName() {
        return get(LAST_NAME);
    }

    public String getProjectName() {
        return get(PROJECT_NAME);
    }

    public String getTitle() {
        return get(TITLE);
    }

    public String getType() {
        return get(TYPE);
    }

    public String getLanguage() {
        return get(LANGUAGE);
    }

    public Number getPagesMin() {
        return get(PAGES_MIN);
    }

    public Number getPagesMax() {
        return get(PAGES_MAX);
    }

    public Date getCreationMin() {
        return get(CREATION_MIN);
    }

    public Date getCreationMax() {
        return get(CREATION_MAX);
    }

    public Date getExactMin() {
        return get(EXACT_MIN);
    }

    public Date getExactMax() {
        return get(EXACT_MAX);
    }

    public Date getEndMin() {
        return get(END_MIN);
    }

    public Date getEndMax() {
        return get(END_MAX);
    }

    public String getAnnotationType() {
        return get(ANNOTATION_TYPE);
    }

    public String getAnnotationText() {
        return get(ANNOTATION_TEXT);
    }
}
